<div class="pageHeader">
<form id="pagerForm" action="__URL__" method="post">


        <input type="hidden" name="orderField" value="{$_REQUEST.orderField}">
        <input type="hidden" name="orderDirection" value="{$_REQUEST.orderDirection}">
        <input type="hidden" name="pageNum" value="{$_REQUEST['pageNum']|default=1}"/>
	    <input type="hidden" name="numPerPage" value="{$numPerPage}"/>

    </form>

        <div  class="form-inline">
             <div class="form-group">
        <a href="{:U('add')}" rel="articleadd"  target="navtab" title="新增资讯"  class="btn btn-green btn-sm">新增</a>
         <a href="__URL__/position" class="btn btn-red btn-sm"  target="checkedAjaxTodo" idname="ids">推荐</a>
         <a href="__URL__/zhiding" class="btn btn-red btn-sm"  target="checkedAjaxTodo" idname="ids">置顶</a>
         <a href="__URL__/qxposition" class="btn btn-red btn-sm"  target="checkedAjaxTodo" idname="ids">取消推荐与置顶</a>
         
                
        
        </div>
                  <div class="pull-right btn-group">
                                  <button data-toggle="dropdown" class="btn btn-success dropdown-toggle btn-sm" type="button"><i class="icon-list"></i> 批量操作<span class="caret"></span></button>
                                  <ul role="menu" class="dropdown-menu">
                                  <div class="log-arrow-up"></div>
                                     
                                      <li><a href="__URL__/selectedDelete"  title="确定要删除选中信息吗？" target="checkedAjaxTodo" idname="ids">删除选中</a></li>
                                  </ul>
                                </div>  
        </div>

  
</div>
<div class="pageContent">
    <table class="j-table" width="100%" layoutH="95">
        <thead>
            <tr>
                <th width="40">ID</th>
                <th>分类</th>
                <th>文章发布者</th>
                 <th class="orderby <eq name="order" value="title">{$sortImg}</eq>" orderField="title">标题</th>
                <th  width="120" class="orderby <eq name="order" value="status">{$sortImg}</eq>" orderField="status">资讯状态</th>
                <th  width="120" class="orderby <eq name="order" value="tj">{$sortImg}</eq>" orderField="tj">推荐</th>
                 <th width="30"><input type="checkbox" class="checkboxCtrl j-icheck" group="ids"></th>
                <th width="200">操作</th>
            </tr>
        </thead>
        <tbody>
           <volist id="vo" name="list">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.cid|get_cate='name'}</td>
                <td>{$vo.uid|get_username}</td>
				<td><a href="{:U('Home/Index/artc',array('id'=>$vo['id']))}" target="_blank">{$vo.title}</a></td>
				<td>{$vo['status']|getStatus}</td>
				<td>{$vo['tj']|getPosition}</td>
				<td><input type="checkbox" name="ids" class="j-icheck" value="{$vo['id']}"></td>
				<td>
                    <a href="__URL__/edit/id/{$vo['id']}/navTabId/{:CONTROLLER_NAME}" rel="articleedit{$vo.id}"  class="btn btn-green btn-sm" target="navtab" title="编辑{$vo.title}" >编辑</a>
                   {$vo['status']|showStatus=$vo['id'],CONTROLLER_NAME}
                    <a href="__URL__/foreverdelete/id/{$vo['id']}/navTabId/{:CONTROLLER_NAME}" class="btn btn-red btn-sm" target="ajaxTodo" title="确定要删除该行信息吗？">删</a>
                </td>
            </tr>
            
          </volist>
        </tbody>
    </table>
<div class="panelBar">
        <div class="pages">
            <span>每页&nbsp;</span>
            <span class="sel">
                <select class="selectpicker show-tick dropup" data-style="btn-default btn-sel xs" data-width="auto" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                  <option value="5" <eq name="numPerPage" value="5">selected=selected</eq>>5</option>
				<option value="10" <eq name="numPerPage" value="10">selected=selected</eq>>10</option>
				<option value="15" <eq name="numPerPage" value="15">selected=selected</eq>>15</option>
				<option value="20" <eq name="numPerPage" value="20">selected=selected</eq>>20</option>
                </select>
            </span>
            <span>&nbsp;条，共 {$totalCount} 条</span>
        </div>
        <div class="pagination-box" targettype="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}">
        </div>
    </div>
</div>

